﻿@model mtm.Core.Models.RegisterModel
@{ 
    /* Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich 
       To learn more about mytrip.mvc visit  
       http://mytripmvc.net  http://mytripmvc.codeplex.com 
       mytripmvc@gmail.com
       license: Microsoft Public License (Ms-PL) */ 
}
@{
   ViewBag.Title = Html.MytripPageTitle(CoreLanguage.register);
   ViewBag.Keywords = mtm.Core.Settings.CoreSetting.HomePageKeyWords();
   ViewBag.Description = mtm.Core.Settings.CoreSetting.HomePageDesc();
}
@section scriptlink{
@Html.ScriptLink("jquery.validate.min.js,jquery.validate.unobtrusive.min.js")
}
@section content{
@Html.BreadCumps(">",Model.bread)
<h1 class="title">@CoreLanguage.create_account</h1>
@if(!Model.sendemail){
<p>@CoreLanguage.register_text_first</p>
<p>@string.Format(CoreLanguage.register_text_last, Model.minRequiredPasswordLength)</p>
<div id="errorsumm"></div>
<div class="last"></div>
using (Html.BeginForm())
{ 
<fieldset>
<div class="editor-label">
@Html.LabelFor(m => m.UserName, CoreLanguage.UserName)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.UserName)
@Html.ValidationMessageFor(m => m.UserName) 
</div><div class="editor-label">
@Html.LabelFor(m => m.Email, CoreLanguage.Email)
</div><div class="editor-field">
@Html.TextBoxFor(m => m.Email)
@Html.ValidationMessageFor(m => m.Email)
</div><div class="editor-label">
@Html.LabelFor(m => m.Password, CoreLanguage.Password)
</div><div class="editor-field">
@Html.PasswordFor(m => m.Password)
@Html.ValidationMessageFor(m => m.Password) 
</div><div class="editor-label">
@Html.LabelFor(m => m.ConfirmPassword, CoreLanguage.ConfirmPassword)
</div><div class="editor-field">
@Html.PasswordFor(m => m.ConfirmPassword)
@Html.ValidationMessageFor(m => m.ConfirmPassword) 
</div>
@if (Model.unlockCaptcha)
{ 
<div class="editor-label">
@Html.LabelFor(m => m.Captcha, CoreLanguage.Captcha)
@Html.CaptchaImage(202, 60, "Times New Roman")
</div><div class="editor-field">
@Html.TextBoxFor(m => m.Captcha)
@Html.ValidationMessageFor(m => m.Captcha)
</div>
} 
<div class="button">
@Html.MytripButton(CoreLanguage.register, true, "left")
</div>
</fieldset>    
}
}
else
{
<div class="appr">
<p>@CoreLanguage.Email_account_body</p>
</div>
} 
}